import Taro, { Component, Config } from '@tarojs/taro';
import { ComponentClass } from 'react'
import { View,Image } from '@tarojs/components'
import './index.less'

type PageOwnProps  = {
  isactive: boolean;
}
type PageState = {}
type Iprops = PageOwnProps;
interface SwiperCar {
  props: Iprops;
}
class SwiperCar extends Component {
  constructor (props) {
    super(props);
    this.state= {

    }
  }
  config: Config = {

  }
  render () {
    return (
      <View className="container">
        <Image className={ this.props.isactive ? 'door1 active': 'door1'}  src='../../assets/images/door1.png' />
        <Image className="carBody" src='../../assets/images/carBody.png' />
        <Image className={ this.props.isactive ? 'door2 active': 'door2'} src="../../assets/images/door2.png" />
      </View>
    )
  }
}

export default SwiperCar as ComponentClass<PageOwnProps,PageState>

